//
//  WCWeixinTool.m
//  WC
//
//  Created by wsj2015 on 16/1/12.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCWeixinTool.h"



@implementation WCWeixinTool




+ (BOOL)isWXAppInstalled{
    return [WXApi isWXAppInstalled];
}

+ (void)shareMediaOutWith:(NSInteger)scene
            withImagename:(NSString *)imageName
                   urlStr:(NSString *)urlStr
              description:(NSString *)contentDes

{
    

    
    WXMediaMessage *message =[WXMediaMessage message];
    message.title =@"护礼家护理案例";
    message.description =contentDes;

    [message setThumbImage:[UIImage imageNamed:imageName]];
    
    WXWebpageObject *webpageobject =[[WXWebpageObject alloc] init];
    webpageobject.webpageUrl = urlStr;
    message.mediaObject =webpageobject;
    
    
    SendMessageToWXReq *req =[[SendMessageToWXReq alloc] init];
    req.bText = NO;
    req.message = message;
    req.scene =scene;
   
    [WXApi sendReq:req];

}




@end
